package com.xxl.job.executor.mvc.api;

import com.web.all.common.bean.response.Result;
import com.xxl.job.executor.mvc.feign.PersonnelAccessApiFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 人员准入
 * @author lc
 */
@FeignClient(name = "app-personnel-access",primary = false,fallbackFactory = PersonnelAccessApiFallbackFactory.class)
public interface PersonnelAccessApi {
    /**
     *  code: 1003217
     * 定时更新即将过期
     *
     * @return 操作成功否
     */
    @GetMapping("personnel/access/v1/check/updateCredential")
    @ApiOperation(value = "定时更新即将过期")
    Result updateCredential();
}
